package com.lihepeng.leecode.interview;

import org.junit.Test;

/**
 * 奇奇怪怪面试题
 * final 修饰的属性默认没有初始化在无参构造初始化
 *
 */
public class Student {
    private final int a ;

    public Student() {
        this.a = 10;
    }
    @Test
    public void runTest(){
        Student student = new Student();
        System.out.println(student.a);
    }
}
